package com.itheima.test;

public class test1 {
    public static void main(String[] args) {
        //定义一个方法，求矩形的周长
        getLength(10,20);
    }

    public static void getLength(double len,double width){
        double result = 2*(len+width);
        System.out.println(result);
    }
}
